<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
    console.log(parseInt("20.20"));
    console.log(typeof parseFloat("21.88哈哈哈99"));

    // Math

    // 1. 四舍五入
    console.log(Math.round(10.61));

    // 2. 天花板
    console.log(Math.ceil(10.99999));

    // 3. 地板
    console.log(Math.floor(10.0001));

    // 4. 取绝对值
    console.log(Math.abs(-12.11));

</script>
</body>
</html>